#ifndef __DRV_FLASH__
#define __DRV_FLASH__


#include "stm32f1xx_hal.h"


//function

uint8_t     Flash_Register_Read(uint8_t addr);
uint8_t     Flash_Read_ID(uint8_t *device_id);
int 		    m_fclose(uint32_t *fp);
uint32_t *  m_fopen(const char * path, const char * mode);
uint32_t    m_ftell(uint32_t *stream);
int         m_fseek(uint32_t *stream, long offset, int fromwhere);
uint32_t    m_fread ( void *buffer, size_t size, size_t count, uint32_t *stream);
uint32_t *  m_fopen(const char * path, const char * mode);

#endif
